﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ACP.DTO;

namespace ACP.Data
{
    public class ArticleRepository : Repository<Article>
    {

        // This file should not get overridden
        public static List<Article> GetAllArticles()
        {
            List<Article> lstArticle;
            IRepository<Article> articleRepository = new Repository<Article>();
            try
            {
                lstArticle = articleRepository.GetAll().ToList();
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                articleRepository.Dispose();
            }
            return lstArticle;

        }

    }
}
